export default {
  // 修改播放状态
  updataPlay (state, st) {
    state.getPlay = st
  },
  // 修改clearBtn 控制清空历史记录按钮是否显示
  updataClearBtn (state, bool) {
    state.clearBtn = bool
  },
  // 修改当前播放歌曲
  updataCurrentSong (state, data) {
    state.currentSong = data
    console.log(data)
  },
  // 修改当前歌曲播放时间
  updataCurrentTime (state, time) {
    state.currentTime = time
  },
  // 添加历史歌曲记录
  addSongArr (state, song) {
    state.historySongs.push(song)
  },
  // 清空历史记录
  remSongArr (state) {
    state.historySongs = []
  }
}
